package ooDay01;

public class Car {
    String brand;
    String color;
    double price;
    int capacity;
    Car(){

    }
    Car(String brand,String color,double price,int capacity){
        this.brand = brand;
        this.color =color;
        this.price = price;
        this.capacity = capacity;

    }



    void start(){

        System.out.println(this.brand+"牌子的"+this.color+"颜色的"+this.price+"价格的"+this.capacity+"座的"+"车启动了");
    }

    void stop(){
        System.out.println(this.brand+"牌子的"+this.color+"颜色的"+this.price+"价格的"+this.capacity+"座的"+"车停止了");
    }

    void run(){
        System.out.println(this.brand+"牌子的"+this.color+"颜色的"+this.price+"价格的"+this.capacity+"座的"+"车跑起来了");
    }
}
